package com.mbyte.easy.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mbyte.easy.admin.entity.Allot;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lp
 * @since 2019-12-12
 */
public interface AllotMapper extends BaseMapper<Allot> {
    /**
     *@author 孙祺至
     *@date 2019/12/12 19:42
     */
    List<Allot> getDraftByUserId(Long allotNo_id);
    List<Allot> getDraftByAllotnoId(Long allotNo_id);


    /**
     * @Author 张雪
     * @Description 批量分配
     * @Date 2019/12/10 16:41
     **/
    int allotByIds(List<Long> ids);


    List<Allot> getAllotDraftIdByUserId(Long userId);
    List<Long> getDraftIdByUserId(Long userId);

    /**
    * @Author//宋昱
     * @Description //根据userid找draftid
     * @Date 2019/12/16 10:30
            *
     * @return*/
    List<Long> selectDraftIdByAllot(Long allotNo_id);
    List<Long> selectDraftIdByAllotId(Long allot_id);
/**
* @Author//宋昱
 * @Description //寻找被分配人id
 * @Date 2019/12/20 19:51
        **/
List<Long> selectAllotNoId(Long allot_id);

    List<Allot> selectByAllotId(Long id);

    List<Allot> getAllotBycodes(Long allot_id,Integer status_code);

}
